Skip to content

[chore] raster tile layer tests - #3152

Merged
igorDykhta merged 3 commits into
masterfrom
igr/raster-layer-tests
Jul 10, 2025
Merged

[chore] raster tile layer tests#3152
igorDykhta merged 3 commits into
masterfrom
igr/raster-layer-tests

Conversation

@igorDykhta

Copy link
Copy Markdown
Collaborator
  • missing raster tile layer tests

Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
Copilot AI review requested due to automatic review settings July 8, 2025 00:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive browser tests for the RasterTileLayer to ensure its constructor, data formatting, rendering, configuration updates, and edge-case behaviors are validated, and it hooks the new spec into the test suite.

  • Introduces raster-tile-layer-specs.js with tests covering constructor defaults, formatLayerData, renderLayer, config/meta updates, default props, visual channels, pixel tracking, rendering toggles, and error/edge cases.
  • Updates index.js to import the new raster tile layer tests.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/browser/layer-tests/raster-tile-layer-specs.js Adds end-to-end tests for RasterTileLayer
test/browser/layer-tests/index.js Imports the new raster tile layer spec file
Comments suppressed due to low confidence (1)

test/browser/layer-tests/raster-tile-layer-specs.js:158

  • [nitpick] Test only verifies that stacLayers is an array and its length is non-negative; consider adding assertions to verify that it returns the expected layer count and properties (e.g., instance of TileLayer, correct tileSource or dataset).
  const stacLayers = layer.renderLayer(stacRenderOpts);

Comment thread test/browser/layer-tests/raster-tile-layer-specs.js Outdated
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
@ilyabo
ilyabo self-requested a review July 10, 2025 13:27
@igorDykhta
igorDykhta merged commit 1a93a2b into master Jul 10, 2025
8 checks passed
@igorDykhta
igorDykhta deleted the igr/raster-layer-tests branch July 10, 2025 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants